<template>
  <div style="height: 450px;">
    <base-table :config="config">
      <template #append>
        <el-table-column label="操作">
          <template #default>
            <el-button
              size="small"
              type="text"
            >查看</el-button>
          </template>
        </el-table-column>
      </template>
    </base-table>
  </div>
</template>

<script lang="ts">
import {
  defineComponent, ref, Ref
} from 'vue';
import { TableConfig } from '@/components/BaseTable/baseTable';

export default defineComponent({
  name: 'Manage',

  setup() {
    const config: Ref<TableConfig> = ref({
      showSelection: true,
      header: [
        {
          label: 'asdasd',
          prop: 'a'
        },
        {
          label: '1asd1',
          prop: 'b'
        }
      ],
      getDataList: async () => {
        return {
          data: []
        };
      }
    });

    return {
      config
    };
  }
});
</script>

<style lang="scss" scoped>
</style>
